<!DOCTYPE HTML>
<html >
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>支付订单</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/swiper.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/layer.css" />
    <link rel="stylesheet" type="text/css" href="../css/mdw.css" />
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../script/swiper.min.js"></script>
    <script type="text/javascript" src="../script/mobile.js"></script>
    <script type="text/javascript" src="../script/layer.js"></script>
    <script type="text/javascript" src="../script/mdw.js"></script>
    <script type="text/javascript" src="../script/jumpPage.js"></script>

</head>
<body >
    <header class="header">
        <div class="backPrevPage" onclick="openWin('index','index.html')"></div>
        <div class="pageTitle">支付订单</div>
    </header>
    <section class="paySuccessPage HTML_BOX">
       <img src="../image/success.png" class="payIcon"/>
       <div class="paySucBox1">恭喜您，下单成功了啦！</div>
       <div class="paySucBox2">订单金额：<span class="c_main">￥62.00</span><br/>订单编号:<span id="order_number">1023566589452365</span></div>
       <div class="paySucBox3">温馨提示：您成功支付后，订单状态的更新可能存在短期延迟，建议你半小时之后再查询您的支付状态</div>
        <div class="paySucBox4 displayFlex">
            <div class="paybtn1 f_c" onclick="openWin('index','index.html')">继续购物</div>
            <div class="paybtn2 f_c" onclick="goOrder();">查看订单</div>
        </div>
    </section>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    
    var param={};
    apiready = function(){
        api.addEventListener({
            name : 'keyback'
        }, function(ret, err) {
            openWin('index','index.html')
        });
        $api.fixStatusBar($api.dom('header'));
        api.setStatusBarStyle({
            color: '#fff',//设置APP状态栏背景色
            style: 'dark'
        });
        ifCnAndEn();
        ready();
        param = api.pageParam || {};
        $("#order_number").html(param.order_number);
        console.log(param.sum_price);
        $(".c_main").html('￥'+param.sum_price);
        if(param.way == 2 || param.way == 5){
            $(".c_main").html('$'+param.sum_price);
        }
    };
    function goOrder(){
        openWin('order','order.html');
    }
    function ready(){
        pop.loading();
        getAjax(Interface.pay_remind,{},function(res){
            pop.close();
            $(".paySucBox3").html(res.data);
        },function(res,err){})
    }

</script>
<script type="text/javascript">
    function ifCnAndEn(){
        if(cnen==2){
            $(".pageTitle").eq(0).html('Pay Order');
            $(".paySucBox1").html('Your order has been placed.');
            $(".paySucBox2").html('Order Total: <span class="c_main">￥62.00</span><br />Order Number:<span id="order_number"></span>');
             $(".paySucBox3").html('We will get your order ready and shipped out at the earliest time. If you have any questions, please contact us with your order number. Thank you for shopping with us.');
            $(".paybtn1").html('Continue Shopping');
            $(".paybtn2").html('Review Order');
        }
    }
</script>
</html>